# 引入项目通用 cmake 设置
include(common)

if (DEFINED COMMON_THIRD_LIB)
  set(CodeMeter_DIR ${COMMON_THIRD_LIB}/CodeMeter)
  set(CodeMeter_INC_DIR ${CodeMeter_DIR}/DevKit/include)
  set(CodeMeter_LIB_DIR ${CodeMeter_DIR}/DevKit/lib)
endif()

# =============================================================================
macro(use_wibu_dog ag_project_name)
  # 威步加密狗
  target_include_directories(${ag_project_name} PRIVATE ${CodeMeter_INC_DIR})
  # 威步加密狗
  target_link_directories(${ag_project_name} PRIVATE ${CodeMeter_LIB_DIR})
endmacro(use_wibu_dog)